using UnityEngine;
using UnityEngine.Serialization;

public class CardManager : MonoBehaviour
{
   
    
    public GameObject GetCardObject()
    {
        var cardObj = PoolTool.GetInstance().GetObjectFromPool(nameof(Card));
        cardObj.transform.localScale = Vector3.one;
        return cardObj;
    }

    // 丢弃一张牌
    public void DiscardCard(GameObject card)
    {
        // 将牌释放回对象池
        PoolTool.GetInstance().ReleaseObjectToPool(nameof(Card),card);
    }
}
